package com.bdqn.t320.ch13.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.t320.ch13.entity.User;
import com.bdqn.t320.ch13.entity.vo.UserVo;

import java.util.List;

public interface UserService extends IService<User> {

    User getUserByUsrNameBiz(String usrName);

    List<String> getRightCodeByUserIdBiz(Long usrId);

    IPage<User> getPageUserListBiz(Page<User> page, QueryWrapper wrapper);

    IPage<UserVo> getCustomPageUserListBiz(Page<UserVo> page, User user);

    boolean removeByIdBiz(Integer id);

    User getUserByIdBiz(Integer id);

    int updateByIdBiz(User user);
}
